@extends('mobile')
@section('content')
    <div class="wap_box">
        <h3 class="hdjsh3">关于我们 <a href="{{url('/mobile/about/'.$about->id)}}" class="genduo">MORE</a></h3>
        <div class="index_about">
            <img src="{{url('/images/abimg.jpg')}}"/>
            {{$about->description}}
        </div>
    </div>
    <div class="wap_box mt_1">
        <h3 class="hdjsh3">工程案例 <a href="{{url('/mobile/kindcas')}}" class="genduo">MORE</a></h3>
        <ul class="index_product">
            @foreach($case as $item)
                <li>
                    <a href="{{url('/mobile/case/'.$item->id)}}">
                        <img src="{{asset("/img/".$item->type.'-'.json_decode($item->content)->pic.'/152-120')}}">
                        <span>{{$item->name}}</span>
                    </a>
                </li>
            @endforeach
        </ul>
    </div>
    <div class="wap_box mt_1">
        <h3 class="hdjsh3">新闻资讯 <a href="#" class="genduo">MORE</a></h3>
        @foreach($news as $item)
            <div class="index_news">
                <a href="{{url('/mobile/news/'.$item->id)}}">
                    <div class="lzj">
                        @if(isset(json_decode($item->content)->pic) && "" != json_decode($item->content)->pic)
                            <img src="{{asset("/img/".$item->type.'-'.json_decode($item->content)->pic.'/76-57')}}">
                        @else
                            <img src="{{asset('/images/LOGO_01_hover.png')}}">
                        @endif
                    </div>
                    <h3>{{$item->name}}</h3>
                    <p>{{$item->description}}</p>
                </a>
            </div>
        @endforeach
    </div>
    <div class="wap_box mt_1">
        <h3 class="hdjsh3">友情链接</h3>
        <ul class="link_box">
            @foreach($link as $item)
                <li>
                    <a href="{{json_decode($item->content)->url}}"><img
                                src="{{asset("/img/".$item->type.'-'.json_decode($item->content)->pic.'/'.$items['link']['data']['pic']['value'])}}"></a>
                </li>
            @endforeach
        </ul>
    </div>
@stop